/**
 * 
 */
package com.momosw.games.engine;

import com.momosw.games.engine.events.ActionEvent;
import com.momosw.games.engine.events.Event;
import com.momosw.games.engine.player.Player;
import com.momosw.games.engine.util.Utils;
import com.momosw.games.jericho.board.Card;
import com.momosw.games.jericho.board.WallType;

/**
 * <b>Project:</b> JerichoCardGame<br />
 * <b>Package:</b> com.momosw.games.engine<br />
 * <b>Class:</b> EndTurnAction.java<br />
 * <br />
 * <i>GSI 2011</i><br />
 *
 * @author Miguel Coronado (miguelcb84@gmail.com)
 * @version	Aug 16, 2011
 *
 */
public class EndTurnAction implements Action, ActionEvent {

    private Game game;
    private Player current;
    
    /**
     * Constructor.
     * @param game
     * @param current
     */
    public EndTurnAction (Game game, Player current) {
        this.game = game;
        this.current = current;
    }
    
    public void execute () {
        
        Utils.notifyPlayers(game, current, this);
        
    }

    public String getReadableName() {
        return "Fin de turno";
    }

    public Event hidePrivate() {
        return this;
    }

    public Player getPlayer() {
        return current;
    }

    public Action getAction() {
        return this;
    }

    public Card getCard() {
        return null;
    }

    public WallType getWallType() {
        return null;
    }
    
}
